-
Notifications
You must be signed in to change notification settings - Fork 123
Kratos mdpa tutorial for new version #213
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
tutorials/tutorial-6-k.py
Outdated
| ffd = pg.FFD() | ||
| ffd.read_parameters('../tests/test_datasets/parameters_test_ffd_pipe_unv_C0.prm') | ||
|
|
||
| %cat ../tests/test_datasets/parameters_test_ffd_pipe_unv_C0.prm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are you sure this line works in a python script?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Works from Sypder, but not from the command line. Therefore now gone! Thanks
tutorials/tutorial-6-k.py
Outdated
|
|
||
| new_mesh_points = ffd(mesh_points) | ||
|
|
||
| %cat ../tests/test_datasets/parameters_test_ffd_pipe_unv_C1.prm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
agreed, removed from k file
tutorials/tutorial-7-mdpa.py
Outdated
| vedo.settings.embedWindow(backend='k3d', verbose=True) | ||
| vedo.show(DeformedVTK, viewup="z", resetcam=True) | ||
|
|
||
| %cat ../tests/test_datasets/parameters_test_ffd_pipe_unv_C1.prm |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it is good here as the mdpa can therefore be visualized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, for the external packages. I was referring to the cat line. Thanks
tutorials/tutorial-6-k.py
Outdated
| @@ -0,0 +1,19 @@ | |||
| import pygem as pg | |||
| from pygem.khandler import KHandler | |||
| import vedo | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please keep only the used packages
tutorials/tutorial-6-k.py
Outdated
| import pygem as pg | ||
| from pygem.khandler import KHandler | ||
| import vedo | ||
| import meshio |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
|
Dear @e-dub just a curiosity: you are able to visualize something in the file tutorial-7-mdpa.ipynb? From github I cannot see any plot... |
|
|
@e-dub thanks for this contribution! |

No description provided.